<?xml version = "1.0"?>

<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" 
   version = "1.0">

<xsl:output method = "xml" omit-xml-declaration = "no" 
   indent = "yes" doctype-system = 
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
   doctype-public = "-//W3C//DTD XHTML 1.0 Strict//EN"/>

<!-- book.xsl                                    -->
<!-- XSL document that transforms XML into XHTML -->

<!-- specify the root of the XML document -->
<!-- that references this stylesheet      -->
<xsl:template match = "error_information">

   <html xmlns = "http://www.w3.org/1999/xhtml"> 
   
   <head>

      <!-- obtain book title from JSP to place in title -->
      <title>Error</title>

      <link rel = "stylesheet" href = "styles.css" 
         type = "text/css" />
   </head>

   <body>
        <p class = "bold" align = "left">Error code:</p>
        <p><xsl:value-of select = "error_code"/></p>
        <p class = "bold" align = "left">Exception type:</p>
        <p><xsl:value-of select = "exception_type"/></p>
        <p class = "bold" align = "left">Exception message:</p>
        <p align = "left"><xsl:value-of select = "exception_message"/></p>
        <p class = "bold" align = "left">Servlet name:</p>
        <p><xsl:value-of select = "servlet_name"/></p>

        <p>
            <a href = "index.html">Go to main page.</a>
        </p>
    </body>

    </html> 

</xsl:template>

</xsl:stylesheet>
